package com.husd.framework.amazonAds;

import com.alibaba.fastjson.JSON;
import com.husd.framework.TestHelper;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author shengdonghu@126.com
 * @date 2023/11/14 17:31
 */

@NoArgsConstructor
@Data
public class AmazonAdsBillingStatusDTO {


    private List<SuccessDTO> success;
    private List<ErrorDTO> error;

    @NoArgsConstructor
    @Data
    public static class SuccessDTO {
        private Integer index;
        private BillingStatusDTO billingStatus;
        private String advertiserId;

        @NoArgsConstructor
        @Data
        public static class BillingStatusDTO {
            private String billingStatusCode;
            private String message;
        }
    }

    @NoArgsConstructor
    @Data
    public static class ErrorDTO {
        private Integer index;
        private String errorCode;
        private String description;
        private String advertiserId;
    }

    public static void main(String[] args) {

        AmazonAdsBillingStatusDTO amazonAdsBillingStatusDTO = TestHelper.newInstance(AmazonAdsBillingStatusDTO.class);
        System.out.println(JSON.toJSONString(amazonAdsBillingStatusDTO));
    }
}